<?php

class Session{
	const KEY_REMOTE_ADDR = "_remote_addr_";
	
	public static function init(){
		session_start();
		// set the cache expire to 1 minute(s) 
		session_cache_expire(2);	
	}

	public static function setAddress($remoteAddr)
	{
		$_SESSION[Session::KEY_REMOTE_ADDR] = $remoteAddr;
	}
}
?>
